<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterAgentFinanceDailyAddYuGu extends Migrator
{
    public function up()
    {

        $this->table('agent_finance_daily')
            ->addColumn('estimate_amount', 'integer', ['limit' => 15, 'default' => 0, 'comment' => '预估佣金'])
            ->update();
    }

    public function down()
    {
        $this->table('agent_finance_daily')->removeColumn('estimate_amount');
    }
}
